From: Keir Fraser Date: Tue, 16 Jun 2009 10:18:32 +0000 (+0100) Subject: tmem: fix minor accounting error X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13777 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f84ee327e5b8311dfa73f059453ef80a5e8a2af2;p=xen.git tmem: fix minor accounting error Reset a counter when all tmem pages are released. This only affects status reporting (as displayed by xm tmem-list or the just patched xenballoon-monitor) but the incorrectly reported result is misleading. Signed-off-by: Dan Magenheimer --- diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c index 6a0b14f456..774bb7dc12 100644 --- a/xen/common/tmem_xen.c +++ b/xen/common/tmem_xen.c @@ -202,6 +202,7 @@ EXPORT void tmh_release_avail_pages_to_host(void) { scrub_list_splice(&tmh_page_list); INIT_PAGE_LIST_HEAD(&tmh_page_list); + tmh_page_list_pages = 0; } spin_unlock(&tmh_page_list_lock); }